package com.test.rocks.myrocks.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.test.rocks.myrocks.entity.TTenantGroupCellRelation;
import com.test.rocks.myrocks.service.ITTenantGroupCellRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author h.y
 * @since 2025-01-22
 */
@RestController
@RequestMapping("/myrocks")
public class TTenantGroupCellRelationController {
    @Autowired
    private ITTenantGroupCellRelationService tenantGroupCellRelationService;
    @GetMapping("/test2")
    public String test2(){

        final TTenantGroupCellRelation byId = tenantGroupCellRelationService.getOne(new QueryWrapper<TTenantGroupCellRelation>().eq("id", 1077268090825211981L));
        return "门店id："+byId.getCellId().toString();
    }

}
